package com.example.order.controller;

import com.example.order.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: eureka_demo1
 * @package: com.example.order.controller
 * @className: OrderController
 * @author: yangtongtong
 * @description: TODO
 * @date: 2023/7/24 15:46
 * @version: 1.0
 */

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private UserService userService;

    @GetMapping("/hello")
    public String hello(){
        return "hello, i am order";
    }
    @GetMapping("/userhello")
    public String userhello(){
        return userService.hello();
    }
}
